package com.zhongjian.technologycal.mall.bean;

import java.util.List;

/**
 * Created by wei on 2018/1/16.
 */

public class HomeModel {


    /**
     * tagId : 1
     * tagName : 众健商城
     * productsOfTag : [{"id":480,"productname":"柿子片90g","price":30,"oldprice":32,"elecnum":16,"productphotos":[{"photo":"/upload/pics/d219dbbc-5589-42dd-b202-391f269d5827.jpg"},{"photo":"/upload/pics/8cc0f307-d4d1-40a4-8837-34aca9680e1c.jpg"},{"photo":"/upload/pics/9ca74af6-a88a-4e53-9140-0aacfe2400d0.jpg"}]},{"id":235,"productname":"香辣零食混合礼包","price":85,"oldprice":99,"elecnum":13,"productphotos":[{"photo":"/upload/pics/b9b26ec5-e616-4e7b-b3ca-f87e44497c10.jpg"}]},{"id":177,"productname":"尚源佳胚芽米","price":98,"oldprice":128,"elecnum":28,"productphotos":[{"photo":"/upload/pics/b2bc10b1-93e6-4f83-965c-e1e4463042c0.jpg"},{"photo":"/upload/pics/7583805d-547b-420e-b86c-3d9c7b9572f3.jpg"},{"photo":"/upload/pics/e8d50bb1-2afd-496b-a334-d3f38c50369b.jpg"}]},{"id":526,"productname":"生肖定制款 坚果礼盒1630g^@^B套餐","price":129,"oldprice":138,"elecnum":10,"productphotos":[{"photo":"/upload/pics/ed432da1-d174-4ba9-ab8f-d658d8078783.jpg"},{"photo":"/upload/pics/eb81cd40-4eff-438e-be49-2bf888f0d498.jpg"},{"photo":"/upload/pics/7d83d190-7524-427a-9799-4c811cdccf3c.jpg"}]}]
     */

    private int tagId;
    private String tagName;
    private List<ProductsOfTagBean> productsOfTag;

    public int getTagId() {
        return tagId;
    }

    public void setTagId(int tagId) {
        this.tagId = tagId;
    }

    public String getTagName() {
        return tagName;
    }

    public void setTagName(String tagName) {
        this.tagName = tagName;
    }

    public List<ProductsOfTagBean> getProductsOfTag() {
        return productsOfTag;
    }

    public void setProductsOfTag(List<ProductsOfTagBean> productsOfTag) {
        this.productsOfTag = productsOfTag;
    }

    public static class ProductsOfTagBean {
        /**
         * id : 480
         * productname : 柿子片90g
         * price : 30
         * oldprice : 32
         * elecnum : 16
         * productphotos : [{"photo":"/upload/pics/d219dbbc-5589-42dd-b202-391f269d5827.jpg"},{"photo":"/upload/pics/8cc0f307-d4d1-40a4-8837-34aca9680e1c.jpg"},{"photo":"/upload/pics/9ca74af6-a88a-4e53-9140-0aacfe2400d0.jpg"}]
         */

        private int id;
        private String productname;
        private int price;
        private int oldprice;
        private int elecnum;
        private List<ProductphotosBean> productphotos;

        public int getId() {
            return id;
        }

        public void setId(int id) {
            this.id = id;
        }

        public String getProductname() {
            return productname;
        }

        public void setProductname(String productname) {
            this.productname = productname;
        }

        public int getPrice() {
            return price;
        }

        public void setPrice(int price) {
            this.price = price;
        }

        public int getOldprice() {
            return oldprice;
        }

        public void setOldprice(int oldprice) {
            this.oldprice = oldprice;
        }

        public int getElecnum() {
            return elecnum;
        }

        public void setElecnum(int elecnum) {
            this.elecnum = elecnum;
        }

        public List<ProductphotosBean> getProductphotos() {
            return productphotos;
        }

        public void setProductphotos(List<ProductphotosBean> productphotos) {
            this.productphotos = productphotos;
        }

        public static class ProductphotosBean {
            /**
             * photo : /upload/pics/d219dbbc-5589-42dd-b202-391f269d5827.jpg
             */

            private String photo;

            public String getPhoto() {
                return photo;
            }

            public void setPhoto(String photo) {
                this.photo = photo;
            }
        }
    }
}
